import urllib.request

url = 'https://t7.baidu.com/it/u=2511982910,2454873241&fm=193&f=GIF'
url1 = 'https://vd2.bdstatic.com/mda-pmpf9pucmag30a20/sc/cae_h264/1703462136236644477/mda-pmpf9pucmag30a20.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1705378954-0-0-6a1c0aeb3bf8be5375be9bc594f94d49&bcevod_channel=searchbox_feed&cr=2&cd=0&pd=1&pt=3&logid=1354029734&vid=5788013781397550776&klogid=1354029734&abtest='
#下载图片
# urllib.request.urlretrieve(url, '002.jpg')

#下载视频
urllib.request.urlretrieve(url1, '国乐正青春.mp4')